package com.weigang.model;


import java.io.Serializable;

public class CustomMessage implements Serializable {

    private static final long serialVersionUID = 1L; // 推荐添加，避免序列化问题

    private String content;
    private int id;

    // 必须有默认构造方法（JMS 反序列化需要）
    public CustomMessage() {}

    // 构造方法
    public CustomMessage(String content, int id) {
        this.content = content;
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "CustomMessage{" +
                "content='" + content + '\'' +
                ", id=" + id +
                '}';
    }

}
